package com.jnshu.service;

import com.jnshu.dto.user.MyInfoDto;
import com.jnshu.dto.user.MyPersonDto;
import com.jnshu.pojo.User;
import com.jnshu.tools.resultUtils.PageBean;
import com.jnshu.tools.resultUtils.ResultBean;

/**
 * @author xmp
 * @date 2019/8/18 4:26
 */
public interface PersonService {
    //返回个人中心的数据
    MyPersonDto selectMyPersonById(long id);
    //返回个人资料的数据
    MyInfoDto selectMyInfoById(long id);
    //保存个人资料的修改
    ResultBean updateMyInfo(User user);
    //分页查询用户收藏的资料列表
    PageBean getCollectCourse(int classify, int pageNum, int pageSize,long userId);

    PageBean getHistory(int type, int pageSize, int pageNum, long userId);

    ResultBean deleteCollection(long courseId,long userId);

    ResultBean deleteMoreCollection(long userId,String courseId,String status);

    ResultBean deleteHistory(long userId);

    ResultBean selectUserBindingInfo(long id);
}
